package com.suray.basic.wcs.path.enums;

public enum NodeStatus {
    /**
     * 有货
     */
    Y,
    /**
     * 无货
     */
    N;
    public static NodeStatus parse(String NodeStatus){
        if(NodeStatus.equals("Y")){
            return Y;
        }else if(NodeStatus.equals("N")){
            return N;
        }else {
            throw new IllegalArgumentException("参数异常,异常值"+NodeStatus);
        }

    }
}
